package tr.edu.metu.is.mega.server.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * The persistent class for the activitytemplate database table.
 * 
 */
@Entity
public class Activitytemplate implements Serializable, tr.edu.metu.is.mega.server.core.BaseEntity {

    private static final long serialVersionUID = -4887491792465171631L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer pkid;

    private Integer alerttime;

    private String description;

    private Integer duedate;

    private Integer duetime;

    // bi-directional many-to-one association to Course
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "fk_template")
    private Scheduletemplate scheduletemplate;

    private Integer sequenceno;

    private String submissiontype;

    /**
     * Default constructor.
     */
    public Activitytemplate() {
    }

    /**
     * Returns pkid.
     * 
     * @return the pkid
     */
    @Override
    public Integer getPkid() {
        return pkid;
    }

    /**
     * Sets pkid value.
     * 
     * @param pkid the pkid to set
     */
    @Override
    public void setPkid(Integer pkid) {
        this.pkid = pkid;
    }

    /**
     * Returns alerttime.
     * 
     * @return the alerttime
     */
    public Integer getAlerttime() {
        return alerttime;
    }

    /**
     * Sets alerttime value.
     * 
     * @param alerttime the alerttime to set
     */
    public void setAlerttime(Integer alerttime) {
        this.alerttime = alerttime;
    }

    /**
     * Returns description.
     * 
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets description value.
     * 
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Returns duedate.
     * 
     * @return the duedate
     */
    public Integer getDuedate() {
        return duedate;
    }

    /**
     * Sets duedate value.
     * 
     * @param duedate the duedate to set
     */
    public void setDuedate(Integer duedate) {
        this.duedate = duedate;
    }

    /**
     * Returns duetime.
     * 
     * @return the duetime
     */
    public Integer getDuetime() {
        return duetime;
    }

    /**
     * Sets duetime value.
     * 
     * @param duetime the duetime to set
     */
    public void setDuetime(Integer duetime) {
        this.duetime = duetime;
    }

    /**
     * Returns scheduletemplate.
     * 
     * @return the scheduletemplate
     */
    public Scheduletemplate getScheduletemplate() {
        return scheduletemplate;
    }

    /**
     * Sets scheduletemplate value.
     * 
     * @param scheduletemplate the scheduletemplate to set
     */
    public void setScheduletemplate(Scheduletemplate scheduletemplate) {
        this.scheduletemplate = scheduletemplate;
    }

    /**
     * Returns sequenceno.
     * 
     * @return the sequenceno
     */
    public Integer getSequenceno() {
        return sequenceno;
    }

    /**
     * Sets sequenceno value.
     * 
     * @param sequenceno the sequenceno to set
     */
    public void setSequenceno(Integer sequenceno) {
        this.sequenceno = sequenceno;
    }

    /**
     * Returns submissiontype.
     * 
     * @return the submissiontype
     */
    public String getSubmissiontype() {
        return submissiontype;
    }

    /**
     * Sets submissiontype value.
     * 
     * @param submissiontype the submissiontype to set
     */
    public void setSubmissiontype(String submissiontype) {
        this.submissiontype = submissiontype;
    }

}
